package com.viphuli.http.bean.page;

import java.util.List;

import com.google.gson.annotations.SerializedName;
import com.viphuli.http.bean.part.HomeRoomServiceItem;

public class HomeRoomServiceItemListPage extends CommonPaperPage {

	@SerializedName("list")
	private List<HomeRoomServiceItem> list;

	public List<HomeRoomServiceItem> getList() {
		return list;
	}

	public void setList(List<HomeRoomServiceItem> list) {
		this.list = list;
	}

	/**
	 * 是否是最后一页
	 * @return
	 */
	public boolean isLastPage() {

		int showCount = (getPage() - 1) * getPageSize() + list.size();

		return getTotalCount() == showCount;
	}

}
